import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import {HttpModule} from "@angular/http";
import {SimpleHttpComponent} from "./pages/simple/SimpleHTTPComponent";
import {CatchErrorComponent} from "./pages/error/catchError.component";
import {SearchService} from "./pages/search/search.service";
import {SearchComponent} from "./pages/search/search.component";
import {FormBuilder, FormsModule, ReactiveFormsModule} from "@angular/forms";


@NgModule({
  declarations: [
    AppComponent,SimpleHttpComponent,CatchErrorComponent,SearchComponent
  ],
  imports: [
    HttpModule,
    BrowserModule,
    FormsModule,
    ReactiveFormsModule
  ],
  providers:[SearchService],
  bootstrap: [AppComponent]
})
export class AppModule{

}
